﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp12
{
    class Program
    {
        static void Main(string[] args)
        {
            //隐式实现接口
            //Interface1 interface1 = new Animal();
            //interface1.Eat();


            //显示实现接口
            ComputerMajor computerMajor = new ComputerMajor();
            ICompute compute = computerMajor;
            compute.id = 1;
            compute.name = "鲁瀚";
            computerMajor.Chinese = 60;
            computerMajor.Math = 88;
            computerMajor.Chinese = 99;
            compute.Toal();
            compute.Sum();


            

        }
    }
}
